<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Cadastro de Professor</title>
    </h:head>
    <h:body>


        <ui:composition template="./face-professor.xhtml">


            <ui:define name="login"><h:outputText id="lblBemVindo" value="#{login.professor.nome}" /></ui:define>
            <ui:define name="content">
                <div class="box twothirds"> 

                    <!-- Box Header -->
                    <div class="box_header">
                        <h2 style="cursor: s-resize; ">Cadastro de Professores</h2>
                    </div>
                    <div class="box_content">
                        <h:form>
                            <p:panel header="Cadastro de ALuno">
                                <p:tooltip global="true"/>  
                                <h:outputLabel id="lblNome" value="Nome: " />
                                <h:inputText id="txtNome" value="#{professorimplements.professor.nome}" required="true" title="Campo Obrigatório" />
                                <br/>
                                <h:outputLabel id="lblSobrenome" value="Sobrenome: " />
                                <h:inputText id="txtSobrenome" value="#{professorimplements.professor.sobrenome}" required="true" title="Campo Obrigatório" />
                                <br/>
                                <h:outputLabel id="lblRg" value="RG: " />
                                <h:inputText id="txtRg" value="#{professorimplements.professor.rg}" required="true" title="Campo Obrigatório" />
                                <br/>
                                <h:outputLabel id="lblCpf" value="CPF: " />
                                <p:inputMask id="txtCpf" value="#{professorimplements.professor.cpf}" required="true" title="Campo Obrigatório" mask="999.999.999-99"/>
                                <br/>
                                <h:outputLabel id="lblCep" value="CEP: " />
                                <p:inputMask id="txtCep" value="#{professorimplements.professor.cep}" required="true" title="Campo Obrigatório" mask="99999-999"/>
                                <h:outputLabel id="lblCepMsg" value="#{professorimplements.cepValidation}" />
                                <br/>
                                <h:outputLabel id="lblDataNasc" value="Data de Nascimento: " />
                                <p:calendar value="#{professorimplements.professor.dataNascimento}" />
                                <br/>
                                <h:outputLabel id="lblDataCont" value="Data de Contratação: " />
                                <p:calendar value="#{professorimplements.professor.dataContratacao}" />
                                <br/>
                                <h:outputLabel id="lblLogin" value="Login:" />
                                <h:inputText id="txtLogin" value="#{professorimplements.professor.login}" required="true" title="Campo Obrigatório" />
                                <br/>
                                <h:outputLabel id="lblSenha" value="Senha:" />
                                <h:inputSecret id="txtSenha" value="#{professorimplements.professor.senha}" required="true" title="Campo Obrigatório" />
                                <br/>
                                <h:outputLabel id="lblSalvar" value="Clique para salvar:" />
                                <h:commandButton action="#{professorimplements.salvar}" value="Salvar" />
                            </p:panel>
                        </h:form>
                    </div>
                </div>

            </ui:define>

        </ui:composition>


    </h:body>
</html>

